//
//  FitmentLayout.h
//  PerfectWorld
//
//  Created by dllo on 16/8/29.
//  Copyright © 2016年 LST. All rights reserved.
//

#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@protocol fitmentLayoutDelegate <NSObject>

- (CGFloat) collectionView:(UICollectionView *)collectionView
                    layout:(UICollectionViewLayout *)collectionViewLayout
                     width:(CGFloat)width
  heightForItemAtIndexPath:(NSIndexPath *)indexPath;

@end
@interface FitmentLayout : UICollectionViewLayout

/** 列数 */
@property (nonatomic, assign) NSInteger numberOfColumns;

@property (nonatomic, weak)id <fitmentLayoutDelegate> delegate;
// cell间距
@property (nonatomic, assign) CGFloat cellMargin;

@end
NS_ASSUME_NONNULL_END